#! /bin/sh

while read _count code; do
   grep -F " $code " all-results | sort -t : -k 1,1 -k 2,2nr -k 3,3nr >"$code"
done <sort-by-lines
